package com.sendi.common.model;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "KVMAP")
public class KVMapObj {
	private Long id;
	private String type;
	private String keyOrCode;
	private String valueOrDesc;
	private String priority;
	
	@SequenceGenerator(name = "generator", sequenceName = "KVMAP_ID_SEQ")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "type", unique = false, nullable = false, insertable = true, updatable = true)
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "keyOrCode", unique = false, nullable = false, insertable = true, updatable = true)
	public String getKeyOrCode() {
		return keyOrCode;
	}
	public void setKeyOrCode(String keyOrCode) {
		this.keyOrCode = keyOrCode;
	}
	@Column(name = "valueOrDesc", unique = false, nullable = false, insertable = true, updatable = true)
	public String getValueOrDesc() {
		return valueOrDesc;
	}
	public void setValueOrDesc(String valueOrDesc) {
		this.valueOrDesc = valueOrDesc;
	}
	@Column(name = "priority", unique = false, nullable = true, insertable = true, updatable = true)
	public String getPriority() {
		return priority;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	
}
